package com.dongan.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 设计过程的细节表
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_design_procedure_details")
public class DesignProcedureDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键不自增
     */
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 父ID
     */
    @TableField("PARENT_ID")
    private Long parentId;

    /**
     * 细节的数量
     */
    @TableField("DETAILS_NUMBER")
    private BigDecimal detailsNumber;

    /**
     * 过程ID
     */
    @TableField("PROCEDURE_ID")
    private String procedureId;

    /**
     * 过程名
     */
    @TableField("PROCEDURE_NAME")
    private String procedureName;

    /**
     * 劳动时间量
     */
    @TableField("LABOUR_HOUR_AMOUNT")
    private BigDecimal labourHourAmount;

    /**
     * 过程描述
     */
    @TableField("PROCEDURE_DESCRIBE")
    private String procedureDescribe;

    /**
     * 量单位
     */
    @TableField("AMOUNT_UNIT")
    private String amountUnit;

    /**
     * 成本价格
     */
    @TableField("COST_PRICE")
    private BigDecimal costPrice;

    /**
     * 部分和
     */
    @TableField("SUBTOTAL")
    private BigDecimal subtotal;

    /**
     * 模块小结
     */
    @TableField("MODULE_SUBTOTAL")
    private BigDecimal moduleSubtotal;

    /**
     * 登记人
     */
    @TableField("REGISTER")
    private String register;

    /**
     * 登记时间
     */
    @TableField("REGISTER_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date registerTime;

    /**
     * 设计模块标签
     */
    @TableField("DESIGN_MODULE_TAG")
    private String designModuleTag;

    /**
     * 设计模块更改标签
     */
    @TableField("DESIGN_MODULE_CHANGE_TAG")
    private String designModuleChangeTag;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")

    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 逻辑删除(0:true不删除,1:false删除)
     */
    @TableLogic
    private Integer deleted;


}
